In [22]:
import sqlite3
connect = sqlite3.connect('simple_sqlite3.db')
cursor = connect.cursor()
def tableCreate():
cursor.execute("CREATE TABLE SAMSUNG(ID INT, datestamp TEXT, value REAL)")
In [23]:
tableCreate()
In [24]:
cursor.execute("INSERT INTO SAMSUNG VALUES(1, '2015-07-01', 50000)")
connect.commit()
In [ ]: